﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace PPM
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application App = new Application();
            App.ShutdownMode = ShutdownMode.OnMainWindowClose;
            Login login = new Login();
            bool? result = login.ShowDialog();
            if (result == null ? false : (bool)result)
            {
                MainWindow m_MianWindow = new MainWindow();
                App.MainWindow = m_MianWindow;
                App.Run(m_MianWindow);
            }
            else
            {
                App.Shutdown();
            }

        }
    }

}
